

#include <iostream>
#include "inheritance.h"

using namespace std;
using namespace inheritance;


int main(int argc, char **argv) 
{
	
	cout << "child1 is created by \"new Child();\"" << endl;
	Child* child1 = new Child();
	cout << "child1 name is " << child1->name << endl;
	cout << "child2 is created by call \"new Child(string name);\"" << endl;

	string name = "Hoya";
	Child* child2 = new Child(name);
	cout << "child2 name is " << child2->name << endl;



	return 0;
}